package com.lemon.components.wechart.order.supporter;

import com.lemon.components.wechart.enums.MsgTypeEnum;
import com.lemon.components.wechart.order.supporter.msgContent.WxcardContent;

public class SendNewsMsgOrder extends SendMsgOrder {

	private static final long serialVersionUID = -7727539078271894686L;
	// openid
	private String touser;
	private MsgTypeEnum msgtype;
	private WxcardContent wxcard;

	@Override
	public void check() {
		validateHasText(touser, "touser");
		validateNotNull(msgtype, "msgtype");
		validateNotNull(wxcard, "wxcard");
	}

	public String getTouser() {
		return touser;
	}

	public void setTouser(String touser) {
		this.touser = touser;
	}

	public MsgTypeEnum getMsgtype() {
		return msgtype;
	}

	public void setMsgtype(MsgTypeEnum msgtype) {
		this.msgtype = msgtype;
	}

	public WxcardContent getWxcard() {
		return wxcard;
	}

	public void setWxcard(WxcardContent wxcard) {
		this.wxcard = wxcard;
	}

	@Override
	public String toString() {
		return "SendNewsMsgOrder [touser=" + touser + ", msgtype=" + msgtype + ", wxcard=" + wxcard + "]";
	}

}
